package ee.ts022.tuum.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="contract_status_type")
public class ContractStatusType {
	
	@Id
	@Column(name="contract_status_type")
	@SequenceGenerator(name="pk_sequence",sequenceName="s_contract_status_type")
	@GeneratedValue(strategy=GenerationType.AUTO, generator="pk_sequence" )
	private int contractStatusType;
	
	@Column(name="name")
	private String name;

	public ContractStatusType() {
		// TODO Auto-generated constructor stub
	}
	
	public ContractStatusType(int contractType, String name) {
		super();
		this.contractStatusType = contractType;
		this.name = name;
	}

	public int getContractStatusType() {
		return contractStatusType;
	}

	public void setContractStatusType(int contractStatusType) {
		this.contractStatusType = contractStatusType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
